package edu.sctu.nieyu.day20150503;


/**
 * Created by user01 on 2015/5/3.
 */
public class Message1 {
    public void outPut(Message2 array[]){
        for(int i=0;i<2;i++){
            System.out.println(array[i].name);
            System.out.println(array[i].age);
            System.out.println(array[i].sex);
        }

    }
    public static void main(String[] args){
        Message2 array1=new Message2("Tom",18,"男");
        Message2 array2=new Message2("Job",19,"男");
        Message2[] array={array1,array2};
        new Message1().outPut(array);


    }



}
